<template>
	<view class="pages">
		<view class="title">
			{{DetalisData.title}}
		</view>
		<view class="date">
			{{DetalisData.createTime  | formatter('yyyy-mm-dd')}}
		</view>
		<div class="content" v-html="DetalisData.content">
			
		</div>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				DetalisData:{}
			}
		},
		onLoad(options) {
			this.getNewsDetalis(JSON.parse(options.data))
		},
		methods:{
			getNewsDetalis(newsid) {
				uni.showLoading({
					title: this.$t('Laoding'),
				})
				this.$get('/biz/app/licensingOrNewsDetail',{id:newsid},0).then(res => {
					this.DetalisData = res.data.data
					console.log(res,'resresres');
				})
			}
		}
	}
</script>

<style scoped>
	.pages {
		width: 100%;
		height: 100%;
		padding: 30rpx 24rpx 60rpx;
		box-sizing: border-box;	
	}
	.title {
		text-align: center;
		font-size: 40rpx;
		font-weight: 900;
	}
	.content {
		width: 100%;
		margin-top: 40rpx;
		box-sizing: border-box;
	}
	.date {
		width: 100%;
		height: 20rpx;
		margin-top: 30rpx;
		text-align: center;
	}
</style>